#pragma once
#include "..\DXAMLCommon.h"
#include "StringPtr.h"
#include "Position.h"


struct Attribute
{
	bool GetValueRead();
	void SetValueRead();
	enum
	{
		TypeCdata = 0x0,
		TypeId = 0x1,
		TypeIdref = 0x2,
		TypeIdrefs = 0x3,
		TypeEntity = 0x4,
		TypeEntities = 0x5,
		TypeNmtoken = 0x6,
		TypeNmtokens = 0x7,
		TypeNotation = 0x8,
		TypeEnumeration = 0x9
	};

	struct StringPtr qname;
	struct StringPtr prefix;
	struct StringPtr uri;
	struct StringPtr lname;
	struct StringPtr value;
	XINT32 nGrafted;
	XINT32 nNamespace;
	struct Position posValue;
	wchar_t whQuote;
	XINT32 nType;
	XUINT32 nPrev;
};
